﻿@using System.Web.Mvc.Html
@using ALinq.BBS.App_GlobalResources
@model ALinq.BBS.Models.LoginModel
@{
    PageData["Title"] = Label.Login;
    Layout = "_LayoutBase.cshtml";
    PageData["Css"] = "Login.css";
}
<style type="text/css">
    #header
    {
        width: 800px;
    }
    #footer
    {
        width: 800px;
    }
    .field-validation-error
    {
        margin: 0px 0px 0px 84px;
    }
</style>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div style="width: 760px;">
    <div style="" id="loginTopBar">
    </div>
    @using (Html.BeginForm())
    {
        <div style="width: 430px; float: left; height: 243px;">
            <div id="loginImage">
            </div>
            <div id="loginBoxTop">
            </div>
            <div id="loginBoxCenter">
                <div style="text-align: center;">
                    @Html.ValidationSummary(true)
                </div>
                <div>
                    <div class="label">
                        @Html.LabelFor(o => o.UserName)</div>
                    <div style="float: left;">
                        @Html.TextBoxFor(o => o.UserName, new { style = "width:130px" })
                    </div>
                    <div class="HackBox">
                    </div>
                </div>
                <div style="text-align: left">@Html.ValidationMessageFor(o => o.UserName)</div>
                <div style="margin-top: 10px;">
                    <div class="label">
                        @Html.LabelFor(o => o.Password)</div>
                    <div style="float: left;">
                        @Html.PasswordFor(o => o.Password, new { style = "width:130px" })
                    </div>
                    <div class="HackBox">
                    </div>
                </div>
                <div style="text-align: left">
                    @Html.ValidationMessageFor(o => o.Password)</div>
                <div style="margin-top: 10px;">
                    <div class="label">
                        @Label.ValidateCode</div>
                    <div style="float: left;">
                        @Html.TextBoxFor(o => o.ValidateCode, new { style = "width:130px" })
                    </div>
                    <div class="HackBox">
                    </div>
                </div>
                <div style="text-align: left">
                    @Html.ValidationMessageFor(o => o.ValidateCode)</div>
                <div style="margin-bottom: 10px;">
                    <div class="label">
                        <img alt="" id="imgCode" src="/ValidateCode.ashx" />
                    </div>
                    <div style="float: left; margin-left: 20px;">
                        <a href="JavaScript:RefreshCode()">刷新验证码</a>
                    </div>
                    <div class="HackBox">
                    </div>
                </div>
                <div>
                    <div class="label">
                        &nbsp;</div>
                    <div style="float: left">
                        <input type="submit" value="@Label.Login" style="width: 80px;" name="btnSubmit"/>
                    </div>
                    <div class="HackBox">
                    </div>
                </div>
            </div>
            <div id="loginBoxBottom">
            </div>
        </div>
    }
    <div style="width: 320px; float: right; height: 260px; border-left: solid 1px #DEDFDE;">
        <div>
            &nbsp;</div>
    </div>
    <div class="HackBox">
    </div>
    <br />
</div>
